import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'
const Merchant: AppRouteRecordRaw = {
  path: '/merchant',
  name: 'merchant',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '商户',
    icon: 'icon-user',
    requiresAuth: true,
    order: 3,
  },
  children: [
    {
      path: '/merchant/list',
      name: 'merchantList',
      component: () => import('@/views/merchant/list.vue'),
      meta: {
        locale: '商户列表',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/merchant/applyList',
      name: 'merchantApplyList',
      component: () => import('@/views/merchant/applyList.vue'),
      meta: {
        locale: '商户申请列表',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/merchant/editList',
      name: 'merchantEditList',
      component: () => import('@/views/merchant/editList.vue'),
      meta: {
        locale: '商户修改信息申请列表',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/merchant/classify',
      name: 'merchantClassify',
      component: () => import('@/views/merchant/classify.vue'),
      meta: {
        locale: '商户分类',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    // {
    //   path: '/merchant/type',
    //   name: 'merchantType',
    //   component: () => import('@/views/merchant/type.vue'),
    //   meta: {
    //     locale: '商户类型',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
  ],
}

export default Merchant
